﻿using System.ComponentModel;

namespace Marmat.Forms.Views
{
    namespace GridControl
    {
        public class SelectionChangedEventArgs : GridEventArgs
        {
            private Grid.SelectionChangedEventArgs _args;

            public SelectionChangedEventArgs(Forms.GridControl gridControl, Grid.SelectionChangedEventArgs args) : base(gridControl)
            {
                this._args = args;
            }


            /// <summary>
            /// 获取一个描述如何更改集合的操作。
            /// </summary>
            /// <value></value>
            /// <returns></returns>
            /// <remarks></remarks>
            public CollectionChangeAction Action
            {
                get
                {
                    return this._args.Action;
                }
            }

            /// <summary>
            /// 标识所选状态已被更改的行。
            /// </summary>
            /// <value></value>
            /// <returns></returns>
            /// <remarks></remarks>
            public int ControllerRow
            {
                get
                {
                    return this._args.ControllerRow;
                }
            }
        }
    }
}